import request from '@/utils/request'

// 查询配置表列表
export function listProperty(query) {
  return request({
    url: '/qth/property/list',
    method: 'get',
    params: query
  })
}

// 查询配置表详细
export function getProperty(theKey) {
  return request({
    url: '/qth/property/' + theKey,
    method: 'get'
  })
}

// 新增配置表
export function addProperty(data) {
  return request({
    url: '/qth/property',
    method: 'post',
    data: data
  })
}

// 修改配置表
export function updateProperty(data) {
  return request({
    url: '/qth/property',
    method: 'put',
    data: data
  })
}

// 删除配置表
export function delProperty(theKey) {
  return request({
    url: '/qth/property/' + theKey,
    method: 'delete'
  })
}
